<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
  <f:layout name="Default" />

  This template displays a NEW form for the current domain object.

  If you modify this template, do not forget to change the overwrite settings
  in /Configuration/ExtensionBuilder/settings.yaml:
    Resources:
      Private:
        Templates:
          New.html: keep

  Otherwise your changes will be overwritten the next time you save the extension in the extension builder

  <f:section name="content">

    <f:flashMessages />
    <f:render partial="FormErrors" />
    <f:if condition="{settings.listType}==1">
      <f:then>
        <!-- PDF文件 -->
        <div class="portlet light">
          <f:form action="create" id="id_filemange_file" enctype="multipart/form-data"  name="filemanage" object="{filemanage}" class="form-horizontal">
            <fieldset>
              <div class="portlet-title">
                <legend>新增信息</legend>
              </div>
              <div class="portlet-body">
                <div class="form-body">
                  <f:render partial="Filemanage/FormFields" arguments="{_all}"/>
                </div>
                <div class="horizontal-space"></div>
                <div class="form-buttons">
                  <f:form.submit class="btn btn-success" value="新增" />
                  <f:link.action action="list" class="btn btn-default">返回列表</f:link.action>
                </div>
              </div>
            </fieldset>
          </f:form>
        </div>
      </f:then>
      <f:else>
        <!-- 其他文件 -->
        <div class="portlet light">
          <f:form action="create" id="id_filemange_otherfile" enctype="multipart/form-data"  name="filemanage" object="{filemanage}" class="form-horizontal">
            <fieldset>
              <div class="portlet-title">
                <legend>新增信息</legend>
              </div>
              <div class="portlet-body">
                <div class="form-body">
                  <f:render partial="Filemanage/FormFieldsOther" arguments="{_all}"/>
                </div>
                <div class="horizontal-space"></div>
                <div class="form-buttons">
                  <f:form.submit class="btn btn-success" value="新增" />
                  <f:link.action action="list" class="btn btn-default">返回列表</f:link.action>
                </div>
              </div>
            </fieldset>
          </f:form>
        </div>
      </f:else>
    </f:if>
  </f:section>
</html>